package com.bookcity.service;

import com.bookcity.dao.RecpurchaseMapper;
import com.bookcity.pojo.Recpurchase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Trioutia
 * @Date: 2022/5/23 - 05 - 23 - 12:59
 * @Description: com.bookcity.service
 * @version: 1.0
 */
@Service
public class RecpurchaseServiceImpl implements RecpurchaseService{

    private RecpurchaseMapper recpurchased;

    @Autowired
    public void setRecpurchased(RecpurchaseMapper recpurchased) {
        this.recpurchased = recpurchased;
    }

    @Override
    public int addRecpurchase(Recpurchase Recpurchase) {
        return recpurchased.addRecpurchase(Recpurchase);
    }

    @Override
    public int deleteRecpurchase(int recencoding) {
        return recpurchased.deleteRecpurchase(recencoding);
    }

    @Override
    public int updateRecpurchase(Recpurchase Recpurchase) {
        return recpurchased.updateRecpurchase(Recpurchase);
    }

    @Override
    public Recpurchase queryRecpurchase(int recencoding) {
        return recpurchased.queryRecpurchase(recencoding);
    }

    @Override
    public List<Recpurchase> queryAllRecpurchase() {
        return recpurchased.queryAllRecpurchase();
    }

}
